package org.example;
import java.io.*;
// 按两次 Shift 打开“随处搜索”对话框并输入 `show whitespaces`，
// 然后按 Enter 键。现在，您可以在代码中看到空格字符。
public class Main {
    public static void main(String[] args) {
        File file=new File("E. java");
        File tempFile=new File("temp. txt");
        try {
            FileReader inOne = new FileReader(file);
            BufferedReader inTwo = new BufferedReader(inOne);
            FileWriter tofile = new FileWriter(tempFile);
            BufferedWriter out = new BufferedWriter(tofile);
            String s = null;
            int i = 0;
            s = inTwo.readLine();
            while (s != null) {
                i++;
                out.write(i + " " + s);
                out.newLine();
                s = inTwo.readLine();
            }
            inOne.close();
            inTwo.close();
            out.flush();
            out.close();
            tofile.close();
        }
catch (IOException e){}
    }
}